package com.imooc.o2o.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Data
@Entity
@Table(name = "tb_shop")
public class Shop implements Serializable {

	@Column(name = "shop_id")
	private Integer shopId;
	@Column(name = "shop_name")
	private String shopName;

	@Column(name = "shop_addr")
	private String shopAddr;
	private String phone;
	@Column(name = "shop_desc")
	private String shopDesc;
	@Column(name = "shop_img")
	private String shopImg;
	private Integer priority;
	@Column(name = "create_time")
	private java.util.Date createTime;
	@Column(name = "last_edit_time")
	private java.util.Date lastEditTime;
	@Column(name = "enable_status")
	private Integer enableStatus;
	private String advice;

	private Area area;
	private PersonInfo owner;
	private ShopCategory shopCategory;



//	@Column(name = "owner_id")
//	private Integer ownerId;
//
//	@Column(name = "area_id")
//	private Integer areaId;
//
//	@Column(name = "shop_category_id")
//	private Integer shopCategoryId;



}
